package cn.cs.service;

import cn.cs.common.Dto;
import cn.cs.common.Page;
import cn.cs.pojo.ProductType;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface ProductTypeService {

    public ProductType getProductTypeById(String id)throws Exception;

    public List<ProductType> getProductTypeListByMap(Map<String, Object> param)throws Exception;

    public List<ProductType> getTypeTree();

    public Integer getProductTypeCountByMap(Map<String, Object> param)throws Exception;

    public Integer addProductType(ProductType productType)throws Exception;

    public Integer modifyProductType(ProductType productType)throws Exception;

    public Integer deleteProductTypeById(String id)throws Exception;

    public Page<ProductType> queryProductTypePageByMap(Map<String, Object> param, Integer pageNo, Integer pageSize)throws Exception;

    public Dto getProType(String token);

    public Dto getProTypeByPid(HttpServletRequest request);

    public Dto getProByType(HttpServletRequest request);
}
